<?php

class Application_Form_Subscribe extends Zend_Form 
{
	public function init()
	{
		$this->setMethod('post')
			->setAttrib('id','form_subscribe');
		
		$elt = new Zend_Form_Element_Text('login');
		$elt->setLabel('Identifiant');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Password('pass');
		$elt->setLabel('Mot de passe');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Password('confirmPass');
		$elt->setLabel('Confirmation mot de passe')
			->addValidator(new My_Validate_PasswordConfirmation());
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('nom');
		$elt->setLabel('Nom');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('prenom');
		$elt->setLabel('Prenom');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('mail');
		$elt->setLabel('Email');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Submit('submit');
		$elt->setLabel('Valider');
		$this->addElement($elt);
	}
}

?>